module.exports = {
swiperealup_custom_lnnl:function(ppinterval){
    m=600;
    n=300;
    x=Math.round(Math.random()*(m-n))+n; 
   // Swipe(x,device.height * 0.625,x,device.height *0.25,ppinterval);
   //滑动函数改为 adb方式，效果一样的，使用adb滑动是因为Swipe长时间运行在个别手机上出现过空指针报错 
   shell("input swipe "+x+" "+device.height * 0.625+" "+x+" "+device.height *0.25+" "+ppinterval,true);
},
swiperealup_custom_xy:function (y){
        m=800;
        n=200;
         x=Math.round(Math.random()*(m-n))+n; 
        // y=1505;
        var ra = new RootAutomator();
        ra.setScreenMetrics(device.width, device.height);
        ra.touchX(x);//642
        ra.touchY(y);//1505
         ra.sendEvent(3, 58, 47);
         ra.sendEvent(3, 48, 6);
         ra.sendEvent(1, 330, 1);
         ra.sendSync();
         sleep(32);
         ra.sendEvent(3, 58, 57);
         ra.sendEvent(3, 48, 7);
         ra.sendSync();
         sleep(34);
        // ra.touchY(1485);
        ra.sendSync();
        // sleep(8);
        // ra.touchY(1480);
        // ra.sendSync();
         sleep(8);
        ra.touchX(x+4);
        ra.touchY(y-31);//1505
        ra.sendSync();
        sleep(8);
        ra.touchX(x+5);
        ra.touchY(y-37);//1505
        ra.sendSync();
        sleep(8);
        ra.touchX(x+6);
        ra.touchY(y-45);//1505   1460
        ra.sendSync();
        sleep(8);
        ra.touchY(y-53);//1505 1452 
        ra.sendSync();
        sleep(8);
        ra.touchX(x+7);
        ra.touchY(y-62);//1505   1443
        ra.sendSync();
        sleep(8);
        ra.touchY(y-73);//1505    1432
        ra.sendSync();
        sleep(8);
        ra.touchY(y-84);//1505    1421
        ra.sendSync();
        sleep(8);
        ra.touchY(y-96);//1505   1409
        ra.sendSync();
        sleep(8);
        ra.touchY(y-107);//1505    1398
        ra.sendSync();
        sleep(8);
        ra.touchY(y-119);//1505    1386
        ra.sendSync();
        sleep(8);
        ra.touchX(x+8);
        ra.touchY(y-130);//1505    1375
        ra.sendSync();
        sleep(8);
        ra.touchY(y-141);//1505    1364
        ra.sendSync();
        sleep(8);
        ra.touchX(x+9);
        ra.touchY(y-151);//1505    1354
        ra.sendSync();
        sleep(8);
        ra.touchX(x+9);
        ra.touchY(y-161);//1505   1344
        ra.sendSync();
        sleep(8);
        ra.touchX(x+11);
        ra.touchY(y-171);//1505    1334
        ra.sendSync();
        sleep(8);
        ra.touchX(x+13);
        ra.touchY(y-181);//1505    1324
        ra.sendSync();
        sleep(8);
        ra.touchX(x+15);
        ra.touchY(y-191);//1505   1314
        ra.sendSync();
        sleep(8);
        ra.touchX(x+16);
        ra.touchY(y-202);//1505    1303
        ra.sendEvent(3, 58, 72);
        ra.sendEvent(3, 48, 8);
        ra.sendSync();
        sleep(8);
        ra.touchX(x+19);
        ra.touchY(y-212);//1505    1293
        ra.sendSync();
        sleep(8);
        ra.touchX(x+21);
        ra.touchY(y-221);//1505   1284
        ra.sendSync();
        sleep(8);
        ra.touchX(x+23);
        ra.touchY(y-230);//1505    1275
        ra.sendSync();
        sleep(8);
        ra.touchX(x+26);
        ra.touchY(y-239);//1505   1266
        ra.sendSync();
        sleep(8);
        ra.touchX(x+29);
        ra.touchY(y-248);//1505    1257
        ra.sendSync();
        sleep(8);
        ra.touchX(x+33);
        ra.touchY(y-258);//1505   1247
        ra.sendSync();
        sleep(8);
        ra.touchX(x+36);
        ra.touchY(y-267);//1505    1238
        ra.sendSync();
        sleep(8);
        ra.touchX(x+40);
        ra.touchY(y-276);//1505    1229
        ra.sendSync();
        sleep(8);
        ra.touchX(x+43);
        ra.touchY(y-284);//1505   1221
        ra.sendSync();
        sleep(8);
        ra.touchX(x+46);
        ra.touchY(y-291);//1505   1214
        ra.sendSync();
        sleep(8);
        ra.touchX(x+49);
        ra.touchY(y-297);//1505   1208
        ra.sendSync();
        sleep(8);
        ra.touchX(x+51);
        ra.touchY(y-303);//1505   1202
        ra.sendSync();
        sleep(8);
        ra.touchX(x+54);
        ra.touchY(y-309);//1505   1196
        ra.sendSync();
        sleep(8);
        ra.touchX(x+57);
        ra.touchY(y-314);//1505   1191
        ra.sendSync();
        sleep(8);
        ra.touchX(x+59);
        ra.touchY(y-319);//1505   1186
        ra.sendSync();
        sleep(8);
        ra.touchX(x+62);
        ra.touchY(y-325);//1505    1180
        ra.sendSync();
        sleep(8);
        ra.touchX(x+64);
        ra.touchY(y-330);//1505   1175
        ra.sendSync();
        sleep(8);
        ra.touchX(x+67);
        ra.touchY(y-336);//1505   1169
        ra.sendSync();
        sleep(8);
        ra.touchX(x+70);
        ra.touchY(y-341);//1505   1164
        ra.sendSync();
        sleep(8);
        ra.touchX(x+73);
        ra.touchY(y-347);//1505   1158
        ra.sendSync();
        sleep(8);
        ra.touchX(x+75);
        ra.touchY(y-352);//1505   1153
        ra.sendSync();
        sleep(9);
        ra.touchX(x+78);
        ra.touchY(y-358);//1505    1147
        ra.sendEvent(3, 48, 9);
        ra.sendSync();
        sleep(9);
        ra.touchX(x+82);
        ra.touchY(y-364);//1505   1141
        ra.sendSync();
        sleep(8);
        ra.touchX(x+85);
        ra.touchY(y-369);//1505   1136
        ra.sendSync();
        sleep(8);
        ra.touchX(x+88);
        ra.touchY(y-374);//1505   1131
        ra.sendSync();
        sleep(8);
        ra.touchX(x+91);
        ra.touchY(y-379);//1505   1126
        ra.sendSync();
        sleep(8);
        ra.touchX(x+94);
        ra.touchY(y-384);//1505    1121
        ra.sendSync();
        sleep(8);
        ra.touchX(x+97);
        ra.touchY(y-389);//1505    1116
        ra.sendSync();
        sleep(8);
        ra.touchX(x+100);
        ra.touchY(y-394);//1505    1111
        ra.sendSync();
        sleep(8);
        ra.touchX(x+103);
        ra.touchY(y-398);//1505    1107
        ra.sendSync();
        sleep(8);
        ra.touchX(x+106);
        ra.touchY(y-403);//1505   1102
        ra.sendSync();
        sleep(8);
        ra.touchX(x+109);
        ra.touchY(y-408);//1505   1097
        ra.sendSync();
        sleep(8);
        ra.touchX(x+112);
        ra.touchY(y-413);//1505   1092
        ra.sendSync();
        sleep(8);
        ra.touchX(x+115);
        ra.touchY(y-418);//1505    1087
        ra.sendSync();
        sleep(8);
        ra.touchX(x+118);
        ra.touchY(y-422);//1505   1083
        ra.sendSync();
        sleep(8);
        ra.touchX(x+121);
        ra.touchY(y-426);//1505    1079
        ra.sendSync();
        sleep(8);
        ra.touchX(x+124);
        ra.touchY(y-430);//1505   1075
        ra.sendSync();
        sleep(8);
        ra.touchX(x+127);
        ra.touchY(y-434);//1505   1071
        ra.sendSync();
        sleep(8);
        ra.touchX(x+129);
        ra.touchY(y-438);//1505   1067
        ra.sendSync();
        sleep(8);
        ra.touchX(x+132);
        ra.touchY(y-442);//1505   1063
        ra.sendSync();
        sleep(8);
        ra.touchX(x+135);
        ra.touchY(y-445);//1505    1060
        ra.sendSync();
        sleep(8);
        ra.touchX(x+138);
        ra.touchY(y-449);//1505    1056
        ra.sendSync();
        sleep(8);
        ra.touchX(x+140);
        ra.touchY(y-452);//1505    1053
        ra.sendSync();
        sleep(8);
        ra.touchX(x+142);
        ra.touchY(y-456);//1505   1049
        ra.sendEvent(3, 48, 7);
        ra.sendSync();
        sleep(8);
        ra.touchX(x+144);
        ra.touchY(y-459);//1505   1046
        ra.sendEvent(3, 58, 66);
        ra.sendEvent(3, 48, 8);
        ra.sendSync();
        sleep(8);
        ra.touchX(x+147);
        ra.touchY(y-461);//1505    1044
        ra.sendSync();
        sleep(8);
        ra.touchX(x+149);
        ra.touchY(y-464);//1505    1041
        ra.sendSync();
        sleep(8);
        ra.touchX(x+150);
        ra.touchY(y-467);//1505   1038
        ra.sendSync();
        sleep(8);
        ra.touchX(x+152);
        ra.touchY(y-469);//1505    1036
        ra.sendSync();
        sleep(8);
        ra.touchX(x+154);
        ra.touchY(y-471);//1505    1034
        ra.sendSync();
        sleep(8);
        ra.touchX(x+156);
        ra.touchY(y-474);//1505   1031
        ra.sendSync();
        sleep(8);
        ra.touchX(x+158);
        ra.touchY(y-476);//1505    1029
        ra.sendSync();
        sleep(8);
        ra.touchX(x+159);
        ra.touchY(y-478);//1505    1027
        ra.sendSync();
        sleep(8);
        ra.touchX(x+161);
        ra.touchY(y-481);//1505    1024
        ra.sendSync();
        sleep(8);
        ra.touchX(x+163);
        ra.touchY(y-483);//1505   1022
        ra.sendSync();
        sleep(8);
        ra.touchX(x+165);
        ra.touchY(y-486);//1505    1019
        ra.sendSync();
        sleep(8);
        ra.touchX(x+167);
        ra.touchY(y-488);//1505   1017
        ra.sendSync();
        sleep(8);
        ra.touchX(x+169);
        ra.touchY(y-491);//1505    1014
        ra.sendSync();
        sleep(8);
        ra.touchX(x+171);
        ra.touchY(y-494);//1505   1011
        ra.sendSync();
        sleep(8);
        ra.touchX(x+174);
        ra.touchY(y-496);//1505    1009
        ra.sendSync();
        sleep(8);
        ra.touchX(x+176);
        ra.touchY(y-499);//1505   1006
        ra.sendSync();
        sleep(8);
        ra.touchX(x+179);
        ra.touchY(y-502);//1505    1003
        ra.sendSync();
        sleep(8);
        ra.touchX(x+182);
        ra.touchY(y-505);//1505    1000
        ra.sendSync();
        sleep(8);
        ra.touchX(x+179);
        ra.touchY(y-508);//1505    997
        ra.sendSync();
        sleep(8);
        ra.touchX(x+187);
        ra.touchY(y-511);//1505   994
        ra.sendSync();
        sleep(9);
        ra.touchX(x+189);
        ra.touchY(y-513);//1505    992
        ra.sendEvent(3, 58, 76);
        ra.sendSync();
        sleep(8);
        ra.touchX(x+189);
        ra.touchY(y-516);//1505    989
        ra.sendSync();
        sleep(8);
        ra.touchX(x+194);
        ra.touchY(y-518);//1505   987
        ra.sendSync();
        sleep(8);
        ra.touchX(x+196);
        ra.touchY(y-520);//1505   985
        ra.sendSync();
        sleep(8);
        ra.touchX(x+198);
        ra.touchY(y-522);//1505    983
        ra.sendSync();
        sleep(8);
        ra.touchX(x+200);
        ra.touchY(y-524);//1505    981
        ra.sendSync();
        sleep(8);
        ra.touchX(x+202);
        ra.touchY(y-526);//1505  979
        ra.sendSync();
        sleep(8);
        ra.touchX(x+204);
        ra.touchY(y-528);//1505    977
        ra.sendSync();
        sleep(8);
        ra.touchX(x+206);
        ra.touchY(y-529);//1505    976
        ra.sendSync();
        sleep(8);
        ra.touchX(x+207);
        ra.touchY(y-531);//1505    974
        ra.sendSync();
        sleep(8);
        ra.touchX(x+209);
        ra.touchY(y-533);//1505    972
        ra.sendSync();
        sleep(8);
        ra.touchX(x+211);
        ra.touchY(y-534);//1505   971
        ra.sendSync();
        sleep(8);
        ra.touchX(x+212);
        ra.touchY(y-536);//1505   969
        ra.sendSync();
        sleep(8);
        ra.touchX(x+214);
        ra.touchY(y-537);//1505    968
        ra.sendSync();
        sleep(8);
        ra.touchX(x+216);
        ra.touchY(y-539);//1505    966
        ra.sendSync();
        sleep(8);
        ra.touchX(x+217);
        ra.touchY(y-540);//1505    965
        ra.sendSync();
        sleep(8);
        ra.touchX(x+219);
        ra.touchY(y-541);//1505    964
        ra.sendSync();
        sleep(8);
        ra.touchX(x+221);
        ra.touchY(y-543);//1505    962
        ra.sendSync();
        sleep(8);
        ra.touchX(x+223);
        ra.touchY(y-544);//1505    961
        ra.sendSync();
        sleep(8);
        ra.touchX(x+225);
        ra.touchY(y-546);//1505     959
        ra.sendSync();
        sleep(8);
        ra.touchX(x+227);
        ra.touchY(y-548);//1505     957
        ra.sendSync();
        sleep(8);
        ra.touchX(x+230);
        ra.touchY(y-549);//1505     956
        ra.sendSync();
        sleep(8);
        ra.touchX(x+233);
        ra.touchY(y-552);//1505    953
        ra.sendSync();
        sleep(8);
        ra.touchX(x+236);
        ra.touchY(y-554);//1505     951
        ra.sendEvent(3, 58, 51);
        ra.sendEvent(3, 48, 7);
        ra.sendSync();
        sleep(8);
        ra.touchX(x+240);
        ra.touchY(y-556);//1505    949
        ra.sendEvent(3, 58, 44);
        ra.sendEvent(3, 48, 5);
        ra.sendSync();
        sleep(8);
        ra.touchX(x+244);
        ra.touchY(y-559);//1505     946
        ra.sendSync();
        sleep(8);
        ra.touchX(x+247);
        ra.touchY(y-562);//1505    943
        ra.sendSync();
        sleep(30);
        ra.sendEvent(3, 57, -1);
        ra.sendEvent(1, 330, 0);
        ra.sendSync();
        sleep(847);
        // ra.sendEvent(3, 57, 180);
        // ra.touchX(43);
        // ra.touchY(440);
        ra.exit();
        
        },
swiperealup_custom:function (){
        m=800;
        n=200;
         x=Math.round(Math.random()*(m-n))+n; 
         y=1505;
        var ra = new RootAutomator();
        ra.setScreenMetrics(device.width, device.height);
        ra.touchX(x);//642
        ra.touchY(y);//1505
         ra.sendEvent(3, 58, 47);
         ra.sendEvent(3, 48, 6);
         ra.sendEvent(1, 330, 1);
         ra.sendSync();
         sleep(32);
         ra.sendEvent(3, 58, 57);
         ra.sendEvent(3, 48, 7);
         ra.sendSync();
         sleep(34);
        // ra.touchY(1485);
        ra.sendSync();
        // sleep(8);
        // ra.touchY(1480);
        // ra.sendSync();
         sleep(8);
        ra.touchX(x+4);
        ra.touchY(y-31);
        ra.sendSync();
        sleep(8);
        ra.touchX(x+5);
        ra.touchY(y-37);
        ra.sendSync();
        sleep(8);
        ra.touchX(x+6);
        ra.touchY(1460);//1505 35
        ra.sendSync();
        sleep(8);
        ra.touchY(y-53);// 1452 1505 
        ra.sendSync();
        sleep(8);
        ra.touchX(x+7);
        ra.touchY(1443);//1505
        ra.sendSync();
        sleep(8);
        ra.touchY(1432);//1505
        ra.sendSync();
        sleep(8);
        ra.touchY(1421);//1505
        ra.sendSync();
        sleep(8);
        ra.touchY(1409);
        ra.sendSync();
        sleep(8);
        ra.touchY(1398);
        ra.sendSync();
        sleep(8);
        ra.touchY(1386);
        ra.sendSync();
        sleep(8);
        ra.touchX(x+8);
        ra.touchY(1375);
        ra.sendSync();
        sleep(8);
        ra.touchY(1364);
        ra.sendSync();
        sleep(8);
        ra.touchX(x+9);
        ra.touchY(1354);
        ra.sendSync();
        sleep(8);
        ra.touchX(x+9);
        ra.touchY(1344);
        ra.sendSync();
        sleep(8);
        ra.touchX(x+11);
        ra.touchY(1334);
        ra.sendSync();
        sleep(8);
        ra.touchX(x+13);
        ra.touchY(1324);
        ra.sendSync();
        sleep(8);
        ra.touchX(x+15);
        ra.touchY(1314);
        ra.sendSync();
        sleep(8);
        ra.touchX(x+16);
        ra.touchY(1303);
        ra.sendEvent(3, 58, 72);
        ra.sendEvent(3, 48, 8);
        ra.sendSync();
        sleep(8);
        ra.touchX(x+19);
        ra.touchY(1293);
        ra.sendSync();
        sleep(8);
        ra.touchX(x+21);
        ra.touchY(1284);
        ra.sendSync();
        sleep(8);
        ra.touchX(x+23);
        ra.touchY(1275);
        ra.sendSync();
        sleep(8);
        ra.touchX(x+26);
        ra.touchY(1266);
        ra.sendSync();
        sleep(8);
        ra.touchX(x+29);
        ra.touchY(1257);
        ra.sendSync();
        sleep(8);
        ra.touchX(x+33);
        ra.touchY(1247);
        ra.sendSync();
        sleep(8);
        ra.touchX(x+36);
        ra.touchY(1238);
        ra.sendSync();
        sleep(8);
        ra.touchX(x+40);
        ra.touchY(1229);
        ra.sendSync();
        sleep(8);
        ra.touchX(x+43);
        ra.touchY(1221);
        ra.sendSync();
        sleep(8);
        ra.touchX(x+46);
        ra.touchY(1214);
        ra.sendSync();
        sleep(8);
        ra.touchX(x+49);
        ra.touchY(1208);
        ra.sendSync();
        sleep(8);
        ra.touchX(x+51);
        ra.touchY(1202);
        ra.sendSync();
        sleep(8);
        ra.touchX(x+54);
        ra.touchY(1196);
        ra.sendSync();
        sleep(8);
        ra.touchX(x+57);
        ra.touchY(1191);
        ra.sendSync();
        sleep(8);
        ra.touchX(x+59);
        ra.touchY(1186);
        ra.sendSync();
        sleep(8);
        ra.touchX(x+62);
        ra.touchY(1180);
        ra.sendSync();
        sleep(8);
        ra.touchX(x+64);
        ra.touchY(1175);
        ra.sendSync();
        sleep(8);
        ra.touchX(x+67);
        ra.touchY(1169);
        ra.sendSync();
        sleep(8);
        ra.touchX(x+70);
        ra.touchY(1164);
        ra.sendSync();
        sleep(8);
        ra.touchX(x+73);
        ra.touchY(1158);
        ra.sendSync();
        sleep(8);
        ra.touchX(x+75);
        ra.touchY(1153);
        ra.sendSync();
        sleep(9);
        ra.touchX(x+78);
        ra.touchY(1147);
        ra.sendEvent(3, 48, 9);
        ra.sendSync();
        sleep(9);
        ra.touchX(x+82);
        ra.touchY(1141);
        ra.sendSync();
        sleep(8);
        ra.touchX(x+85);
        ra.touchY(1136);
        ra.sendSync();
        sleep(8);
        ra.touchX(x+88);
        ra.touchY(1131);
        ra.sendSync();
        sleep(8);
        ra.touchX(x+91);
        ra.touchY(1126);
        ra.sendSync();
        sleep(8);
        ra.touchX(x+94);
        ra.touchY(1121);
        ra.sendSync();
        sleep(8);
        ra.touchX(x+97);
        ra.touchY(1116);
        ra.sendSync();
        sleep(8);
        ra.touchX(x+100);
        ra.touchY(1111);
        ra.sendSync();
        sleep(8);
        ra.touchX(x+103);
        ra.touchY(1107);
        ra.sendSync();
        sleep(8);
        ra.touchX(x+106);
        ra.touchY(1102);
        ra.sendSync();
        sleep(8);
        ra.touchX(x+109);
        ra.touchY(1097);
        ra.sendSync();
        sleep(8);
        ra.touchX(x+112);
        ra.touchY(1092);
        ra.sendSync();
        sleep(8);
        ra.touchX(x+115);
        ra.touchY(1087);
        ra.sendSync();
        sleep(8);
        ra.touchX(x+118);
        ra.touchY(1083);
        ra.sendSync();
        sleep(8);
        ra.touchX(x+121);
        ra.touchY(1079);
        ra.sendSync();
        sleep(8);
        ra.touchX(x+124);
        ra.touchY(1075);
        ra.sendSync();
        sleep(8);
        ra.touchX(x+127);
        ra.touchY(1071);
        ra.sendSync();
        sleep(8);
        ra.touchX(x+129);
        ra.touchY(1067);
        ra.sendSync();
        sleep(8);
        ra.touchX(x+132);
        ra.touchY(1063);
        ra.sendSync();
        sleep(8);
        ra.touchX(x+135);
        ra.touchY(1060);
        ra.sendSync();
        sleep(8);
        ra.touchX(x+138);
        ra.touchY(1056);
        ra.sendSync();
        sleep(8);
        ra.touchX(x+140);
        ra.touchY(1053);
        ra.sendSync();
        sleep(8);
        ra.touchX(x+142);
        ra.touchY(1049);
        ra.sendEvent(3, 48, 7);
        ra.sendSync();
        sleep(8);
        ra.touchX(x+144);
        ra.touchY(1046);
        ra.sendEvent(3, 58, 66);
        ra.sendEvent(3, 48, 8);
        ra.sendSync();
        sleep(8);
        ra.touchX(x+147);
        ra.touchY(1044);
        ra.sendSync();
        sleep(8);
        ra.touchX(x+149);
        ra.touchY(1041);
        ra.sendSync();
        sleep(8);
        ra.touchX(x+150);
        ra.touchY(1038);
        ra.sendSync();
        sleep(8);
        ra.touchX(x+152);
        ra.touchY(1036);
        ra.sendSync();
        sleep(8);
        ra.touchX(x+154);
        ra.touchY(1034);
        ra.sendSync();
        sleep(8);
        ra.touchX(x+156);
        ra.touchY(1031);
        ra.sendSync();
        sleep(8);
        ra.touchX(x+158);
        ra.touchY(1029);
        ra.sendSync();
        sleep(8);
        ra.touchX(x+159);
        ra.touchY(1027);
        ra.sendSync();
        sleep(8);
        ra.touchX(x+161);
        ra.touchY(1024);
        ra.sendSync();
        sleep(8);
        ra.touchX(x+163);
        ra.touchY(1022);
        ra.sendSync();
        sleep(8);
        ra.touchX(x+165);
        ra.touchY(1019);
        ra.sendSync();
        sleep(8);
        ra.touchX(x+167);
        ra.touchY(1017);
        ra.sendSync();
        sleep(8);
        ra.touchX(x+169);
        ra.touchY(1014);
        ra.sendSync();
        sleep(8);
        ra.touchX(x+171);
        ra.touchY(1011);
        ra.sendSync();
        sleep(8);
        ra.touchX(x+174);
        ra.touchY(1009);
        ra.sendSync();
        sleep(8);
        ra.touchX(x+176);
        ra.touchY(1006);
        ra.sendSync();
        sleep(8);
        ra.touchX(x+179);
        ra.touchY(1003);
        ra.sendSync();
        sleep(8);
        ra.touchX(x+182);
        ra.touchY(1000);
        ra.sendSync();
        sleep(8);
        ra.touchX(x+179);
        ra.touchY(997);
        ra.sendSync();
        sleep(8);
        ra.touchX(x+187);
        ra.touchY(994);
        ra.sendSync();
        sleep(9);
        ra.touchX(x+189);
        ra.touchY(992);
        ra.sendEvent(3, 58, 76);
        ra.sendSync();
        sleep(8);
        ra.touchX(x+189);
        ra.touchY(989);
        ra.sendSync();
        sleep(8);
        ra.touchX(x+194);
        ra.touchY(987);
        ra.sendSync();
        sleep(8);
        ra.touchX(x+196);
        ra.touchY(985);
        ra.sendSync();
        sleep(8);
        ra.touchX(x+198);
        ra.touchY(983);
        ra.sendSync();
        sleep(8);
        ra.touchX(x+200);
        ra.touchY(981);
        ra.sendSync();
        sleep(8);
        ra.touchX(x+202);
        ra.touchY(979);
        ra.sendSync();
        sleep(8);
        ra.touchX(x+204);
        ra.touchY(977);
        ra.sendSync();
        sleep(8);
        ra.touchX(x+206);
        ra.touchY(976);
        ra.sendSync();
        sleep(8);
        ra.touchX(x+207);
        ra.touchY(974);
        ra.sendSync();
        sleep(8);
        ra.touchX(x+209);
        ra.touchY(972);
        ra.sendSync();
        sleep(8);
        ra.touchX(x+211);
        ra.touchY(971);
        ra.sendSync();
        sleep(8);
        ra.touchX(x+212);
        ra.touchY(969);
        ra.sendSync();
        sleep(8);
        ra.touchX(x+214);
        ra.touchY(968);
        ra.sendSync();
        sleep(8);
        ra.touchX(x+216);
        ra.touchY(966);
        ra.sendSync();
        sleep(8);
        ra.touchX(x+217);
        ra.touchY(965);
        ra.sendSync();
        sleep(8);
        ra.touchX(x+219);
        ra.touchY(964);
        ra.sendSync();
        sleep(8);
        ra.touchX(x+221);
        ra.touchY(962);
        ra.sendSync();
        sleep(8);
        ra.touchX(x+223);
        ra.touchY(961);
        ra.sendSync();
        sleep(8);
        ra.touchX(x+225);
        ra.touchY(959);
        ra.sendSync();
        sleep(8);
        ra.touchX(x+227);
        ra.touchY(957);
        ra.sendSync();
        sleep(8);
        ra.touchX(x+230);
        ra.touchY(956);
        ra.sendSync();
        sleep(8);
        ra.touchX(x+233);
        ra.touchY(953);
        ra.sendSync();
        sleep(8);
        ra.touchX(x+236);
        ra.touchY(951);
        ra.sendEvent(3, 58, 51);
        ra.sendEvent(3, 48, 7);
        ra.sendSync();
        sleep(8);
        ra.touchX(x+240);
        ra.touchY(949);
        ra.sendEvent(3, 58, 44);
        ra.sendEvent(3, 48, 5);
        ra.sendSync();
        sleep(8);
        ra.touchX(x+244);
        ra.touchY(946);
        ra.sendSync();
        sleep(8);
        ra.touchX(x+247);
        ra.touchY(943);
        ra.sendSync();
        sleep(30);
        ra.sendEvent(3, 57, -1);
        ra.sendEvent(1, 330, 0);
        ra.sendSync();
        sleep(847);
        // ra.sendEvent(3, 57, 180);
        // ra.touchX(43);
        // ra.touchY(440);
        ra.exit();
        
        },
swipereal:function (){
        var ra = new RootAutomator();
        ra.setScreenMetrics(1080, 1920);
        ra.touchX(1202);
        ra.touchY(818);
        ra.sendEvent(3, 58, 55);
        ra.sendEvent(3, 48, 4);
        ra.sendEvent(1, 330, 1);
        ra.sendSync();
        sleep(19);
        ra.sendEvent(3, 58, 67);
        ra.sendSync();
        sleep(54);
        ra.sendEvent(3, 58, 79);
        ra.sendSync();
        sleep(46);
        ra.touchX(1205);
        ra.touchY(798);
        ra.sendEvent(3, 48, 7);
        ra.sendSync();
        sleep(9);
        ra.touchX(1208);
        ra.touchY(794);
        ra.sendEvent(3, 48, 8);
        ra.sendSync();
        sleep(9);
        ra.touchX(1212);
        ra.touchY(791);
        ra.sendSync();
        sleep(8);
        ra.touchX(1215);
        ra.touchY(787);
        ra.sendEvent(3, 48, 7);
        ra.sendSync();
        sleep(10);
        ra.touchX(1218);
        ra.touchY(783);
        ra.sendEvent(3, 48, 6);
        ra.sendSync();
        sleep(8);
        ra.touchX(1221);
        ra.touchY(778);
        ra.sendSync();
        sleep(9);
        ra.touchX(1225);
        ra.touchY(773);
        ra.sendEvent(3, 48, 7);
        ra.sendSync();
        sleep(9);
        ra.touchX(1230);
        ra.touchY(768);
        ra.sendEvent(3, 58, 91);
        ra.sendSync();
        sleep(8);
        ra.touchX(1235);
        ra.touchY(763);
        ra.sendSync();
        sleep(10);
        ra.touchX(1239);
        ra.touchY(758);
        ra.sendSync();
        sleep(8);
        ra.touchX(1243);
        ra.touchY(752);
        ra.sendEvent(3, 48, 8);
        ra.sendSync();
        sleep(9);
        ra.touchX(1247);
        ra.touchY(747);
        ra.sendEvent(3, 58, 77);
        ra.sendEvent(3, 48, 7);
        ra.sendSync();
        sleep(8);
        ra.touchX(1251);
        ra.touchY(742);
        ra.sendSync();
        sleep(9);
        ra.touchX(1256);
        ra.touchY(737);
        ra.sendSync();
        sleep(8);
        ra.touchX(1261);
        ra.touchY(731);
        ra.sendSync();
        sleep(9);
        ra.touchX(1265);
        ra.touchY(726);
        ra.sendSync();
        sleep(9);
        ra.touchX(1268);
        ra.touchY(720);
        ra.sendEvent(3, 58, 89);
        ra.sendEvent(3, 48, 8);
        ra.sendSync();
        sleep(9);
        ra.touchX(1272);
        ra.touchY(714);
        ra.sendSync();
        sleep(10);
        ra.touchX(1276);
        ra.touchY(709);
        ra.sendEvent(3, 48, 6);
        ra.sendSync();
        sleep(9);
        ra.touchX(1280);
        ra.touchY(703);
        ra.sendSync();
        sleep(9);
        ra.touchX(1284);
        ra.touchY(697);
        ra.sendEvent(3, 48, 7);
        ra.sendSync();
        sleep(9);
        ra.touchX(1288);
        ra.touchY(692);
        ra.sendSync();
        sleep(9);
        ra.touchX(1292);
        ra.touchY(687);
        ra.sendEvent(3, 48, 6);
        ra.sendSync();
        sleep(9);
        ra.touchX(1295);
        ra.touchY(683);
        ra.sendSync();
        sleep(9);
        ra.touchX(1298);
        ra.touchY(679);
        ra.sendEvent(3, 48, 7);
        ra.sendSync();
        sleep(9);
        ra.touchX(1299);
        ra.touchY(674);
        ra.sendEvent(3, 48, 8);
        ra.sendSync();
        sleep(9);
        ra.touchX(1302);
        ra.touchY(670);
        ra.sendEvent(3, 48, 7);
        ra.sendSync();
        sleep(9);
        ra.touchX(1305);
        ra.touchY(665);
        ra.sendEvent(3, 48, 8);
        ra.sendSync();
        sleep(10);
        ra.touchX(1308);
        ra.touchY(660);
        ra.sendEvent(3, 58, 78);
        ra.sendSync();
        sleep(9);
        ra.touchX(1312);
        ra.touchY(654);
        ra.sendSync();
        sleep(9);
        ra.touchX(1317);
        ra.touchY(648);
        ra.sendEvent(3, 48, 7);
        ra.sendSync();
        sleep(9);
        ra.touchX(1322);
        ra.touchY(642);
        ra.sendEvent(3, 48, 6);
        ra.sendSync();
        sleep(10);
        ra.touchX(1326);
        ra.touchY(638);
        ra.sendEvent(3, 48, 5);
        ra.sendSync();
        sleep(8);
        ra.touchX(1329);
        ra.touchY(633);
        ra.sendSync();
        sleep(9);
        ra.touchX(1331);
        ra.touchY(629);
        ra.sendEvent(3, 48, 7);
        ra.sendSync();
        sleep(9);
        ra.touchX(1334);
        ra.touchY(624);
        ra.sendSync();
        sleep(9);
        ra.touchX(1337);
        ra.touchY(619);
        ra.sendSync();
        sleep(9);
        ra.touchX(1341);
        ra.touchY(613);
        ra.sendSync();
        sleep(9);
        ra.touchX(1345);
        ra.touchY(608);
        ra.sendSync();
        sleep(9);
        ra.touchX(1350);
        ra.touchY(602);
        ra.sendEvent(3, 48, 6);
        ra.sendSync();
        sleep(9);
        ra.touchX(1355);
        ra.touchY(597);
        ra.sendSync();
        sleep(9);
        ra.touchX(1359);
        ra.touchY(593);
        ra.sendSync();
        sleep(9);
        ra.touchX(1364);
        ra.touchY(588);
        ra.sendSync();
        sleep(9);
        ra.touchX(1369);
        ra.touchY(584);
        ra.sendSync();
        sleep(9);
        ra.touchX(1375);
        ra.touchY(579);
        ra.sendEvent(3, 48, 7);
        ra.sendSync();
        sleep(9);
        ra.touchX(1380);
        ra.touchY(574);
        ra.sendSync();
        sleep(9);
        ra.touchX(1386);
        ra.touchY(569);
        ra.sendSync();
        sleep(9);
        ra.touchX(1390);
        ra.touchY(565);
        ra.sendSync();
        sleep(9);
        ra.touchX(1395);
        ra.touchY(561);
        ra.sendEvent(3, 48, 8);
        ra.sendSync();
        sleep(9);
        ra.touchX(1399);
        ra.touchY(557);
        ra.sendEvent(3, 48, 7);
        ra.sendSync();
        sleep(9);
        ra.touchX(1403);
        ra.touchY(554);
        ra.sendSync();
        sleep(9);
        ra.touchX(1406);
        ra.touchY(550);
        ra.sendSync();
        sleep(9);
        ra.touchX(1410);
        ra.touchY(547);
        ra.sendEvent(3, 48, 6);
        ra.sendSync();
        sleep(9);
        ra.touchX(1414);
        ra.touchY(544);
        ra.sendSync();
        sleep(9);
        ra.touchX(1418);
        ra.touchY(541);
        ra.sendSync();
        sleep(9);
        ra.touchX(1422);
        ra.touchY(538);
        ra.sendSync();
        sleep(9);
        ra.touchX(1426);
        ra.touchY(536);
        ra.sendSync();
        sleep(9);
        ra.touchX(1430);
        ra.touchY(533);
        ra.sendSync();
        sleep(9);
        ra.touchX(1432);
        ra.touchY(531);
        ra.sendSync();
        sleep(9);
        ra.touchX(1435);
        ra.touchY(528);
        ra.sendSync();
        sleep(9);
        ra.touchX(1437);
        ra.touchY(526);
        ra.sendEvent(3, 48, 7);
        ra.sendSync();
        sleep(9);
        ra.touchX(1439);
        ra.touchY(524);
        ra.sendSync();
        sleep(9);
        ra.touchX(1441);
        ra.touchY(522);
        ra.sendSync();
        sleep(9);
        ra.touchX(1443);
        ra.touchY(520);
        ra.sendSync();
        sleep(9);
        ra.touchX(1445);
        ra.touchY(518);
        ra.sendEvent(3, 48, 6);
        ra.sendSync();
        sleep(9);
        ra.touchX(1446);
        ra.touchY(516);
        ra.sendSync();
        sleep(9);
        ra.touchX(1448);
        ra.touchY(514);
        ra.sendSync();
        sleep(9);
        ra.touchX(1451);
        ra.touchY(513);
        ra.sendSync();
        sleep(9);
        ra.touchX(1453);
        ra.touchY(511);
        ra.sendEvent(3, 58, 65);
        ra.sendSync();
        sleep(9);
        ra.touchX(1456);
        ra.touchY(509);
        ra.sendSync();
        sleep(9);
        ra.touchX(1459);
        ra.touchY(508);
        ra.sendEvent(3, 48, 8);
        ra.sendSync();
        sleep(9);
        ra.touchX(1462);
        ra.touchY(507);
        ra.sendEvent(3, 58, 84);
        ra.sendEvent(3, 48, 9);
        ra.sendSync();
        sleep(18);
        ra.sendEvent(3, 57, -1);
        ra.sendEvent(1, 330, 0);
        ra.sendSync();
        ra.exit();
      },
//上滑脚本1 等待入库
swiperealup1:function (){
var ra = new RootAutomator();
ra.setScreenMetrics(1080, 1920);
ra.touchX(642);
ra.touchY(1505);
ra.sendEvent(3, 58, 47);
ra.sendEvent(3, 48, 6);
ra.sendEvent(1, 330, 1);
ra.sendSync();
sleep(32);
ra.sendEvent(3, 58, 57);
ra.sendEvent(3, 48, 7);
ra.sendSync();
sleep(34);
ra.touchY(1485);
ra.sendSync();
sleep(8);
ra.touchY(1480);
ra.sendSync();
sleep(8);
ra.touchX(646);
ra.touchY(1474);
ra.sendSync();
sleep(8);
ra.touchX(647);
ra.touchY(1468);
ra.sendSync();
sleep(8);
ra.touchX(648);
ra.touchY(1460);
ra.sendSync();
sleep(8);
ra.touchY(1452);
ra.sendSync();
sleep(8);
ra.touchX(649);
ra.touchY(1443);
ra.sendSync();
sleep(8);
ra.touchY(1432);
ra.sendSync();
sleep(8);
ra.touchY(1421);
ra.sendSync();
sleep(8);
ra.touchY(1409);
ra.sendSync();
sleep(8);
ra.touchY(1398);
ra.sendSync();
sleep(8);
ra.touchY(1386);
ra.sendSync();
sleep(8);
ra.touchX(650);
ra.touchY(1375);
ra.sendSync();
sleep(8);
ra.touchY(1364);
ra.sendSync();
sleep(8);
ra.touchX(651);
ra.touchY(1354);
ra.sendSync();
sleep(8);
ra.touchX(652);
ra.touchY(1344);
ra.sendSync();
sleep(8);
ra.touchX(653);
ra.touchY(1334);
ra.sendSync();
sleep(8);
ra.touchX(655);
ra.touchY(1324);
ra.sendSync();
sleep(8);
ra.touchX(657);
ra.touchY(1314);
ra.sendSync();
sleep(8);
ra.touchX(658);
ra.touchY(1303);
ra.sendEvent(3, 58, 72);
ra.sendEvent(3, 48, 8);
ra.sendSync();
sleep(8);
ra.touchX(661);
ra.touchY(1293);
ra.sendSync();
sleep(8);
ra.touchX(663);
ra.touchY(1284);
ra.sendSync();
sleep(8);
ra.touchX(665);
ra.touchY(1275);
ra.sendSync();
sleep(8);
ra.touchX(668);
ra.touchY(1266);
ra.sendSync();
sleep(8);
ra.touchX(671);
ra.touchY(1257);
ra.sendSync();
sleep(8);
ra.touchX(675);
ra.touchY(1247);
ra.sendSync();
sleep(8);
ra.touchX(678);
ra.touchY(1238);
ra.sendSync();
sleep(8);
ra.touchX(682);
ra.touchY(1229);
ra.sendSync();
sleep(8);
ra.touchX(685);
ra.touchY(1221);
ra.sendSync();
sleep(8);
ra.touchX(688);
ra.touchY(1214);
ra.sendSync();
sleep(8);
ra.touchX(691);
ra.touchY(1208);
ra.sendSync();
sleep(8);
ra.touchX(693);
ra.touchY(1202);
ra.sendSync();
sleep(8);
ra.touchX(696);
ra.touchY(1196);
ra.sendSync();
sleep(8);
ra.touchX(699);
ra.touchY(1191);
ra.sendSync();
sleep(8);
ra.touchX(701);
ra.touchY(1186);
ra.sendSync();
sleep(8);
ra.touchX(704);
ra.touchY(1180);
ra.sendSync();
sleep(8);
ra.touchX(706);
ra.touchY(1175);
ra.sendSync();
sleep(8);
ra.touchX(709);
ra.touchY(1169);
ra.sendSync();
sleep(8);
ra.touchX(712);
ra.touchY(1164);
ra.sendSync();
sleep(8);
ra.touchX(715);
ra.touchY(1158);
ra.sendSync();
sleep(8);
ra.touchX(717);
ra.touchY(1153);
ra.sendSync();
sleep(9);
ra.touchX(720);
ra.touchY(1147);
ra.sendEvent(3, 48, 9);
ra.sendSync();
sleep(9);
ra.touchX(724);
ra.touchY(1141);
ra.sendSync();
sleep(8);
ra.touchX(727);
ra.touchY(1136);
ra.sendSync();
sleep(8);
ra.touchX(730);
ra.touchY(1131);
ra.sendSync();
sleep(8);
ra.touchX(733);
ra.touchY(1126);
ra.sendSync();
sleep(8);
ra.touchX(736);
ra.touchY(1121);
ra.sendSync();
sleep(8);
ra.touchX(739);
ra.touchY(1116);
ra.sendSync();
sleep(8);
ra.touchX(742);
ra.touchY(1111);
ra.sendSync();
sleep(8);
ra.touchX(745);
ra.touchY(1107);
ra.sendSync();
sleep(8);
ra.touchX(748);
ra.touchY(1102);
ra.sendSync();
sleep(8);
ra.touchX(751);
ra.touchY(1097);
ra.sendSync();
sleep(8);
ra.touchX(754);
ra.touchY(1092);
ra.sendSync();
sleep(8);
ra.touchX(757);
ra.touchY(1087);
ra.sendSync();
sleep(8);
ra.touchX(760);
ra.touchY(1083);
ra.sendSync();
sleep(8);
ra.touchX(763);
ra.touchY(1079);
ra.sendSync();
sleep(8);
ra.touchX(766);
ra.touchY(1075);
ra.sendSync();
sleep(8);
ra.touchX(769);
ra.touchY(1071);
ra.sendSync();
sleep(8);
ra.touchX(771);
ra.touchY(1067);
ra.sendSync();
sleep(8);
ra.touchX(774);
ra.touchY(1063);
ra.sendSync();
sleep(8);
ra.touchX(777);
ra.touchY(1060);
ra.sendSync();
sleep(8);
ra.touchX(780);
ra.touchY(1056);
ra.sendSync();
sleep(8);
ra.touchX(782);
ra.touchY(1053);
ra.sendSync();
sleep(8);
ra.touchX(784);
ra.touchY(1049);
ra.sendEvent(3, 48, 7);
ra.sendSync();
sleep(8);
ra.touchX(786);
ra.touchY(1046);
ra.sendEvent(3, 58, 66);
ra.sendEvent(3, 48, 8);
ra.sendSync();
sleep(8);
ra.touchX(789);
ra.touchY(1044);
ra.sendSync();
sleep(8);
ra.touchX(791);
ra.touchY(1041);
ra.sendSync();
sleep(8);
ra.touchX(792);
ra.touchY(1038);
ra.sendSync();
sleep(8);
ra.touchX(794);
ra.touchY(1036);
ra.sendSync();
sleep(8);
ra.touchX(796);
ra.touchY(1034);
ra.sendSync();
sleep(8);
ra.touchX(798);
ra.touchY(1031);
ra.sendSync();
sleep(8);
ra.touchX(800);
ra.touchY(1029);
ra.sendSync();
sleep(8);
ra.touchX(801);
ra.touchY(1027);
ra.sendSync();
sleep(8);
ra.touchX(803);
ra.touchY(1024);
ra.sendSync();
sleep(8);
ra.touchX(805);
ra.touchY(1022);
ra.sendSync();
sleep(8);
ra.touchX(807);
ra.touchY(1019);
ra.sendSync();
sleep(8);
ra.touchX(809);
ra.touchY(1017);
ra.sendSync();
sleep(8);
ra.touchX(811);
ra.touchY(1014);
ra.sendSync();
sleep(8);
ra.touchX(813);
ra.touchY(1011);
ra.sendSync();
sleep(8);
ra.touchX(816);
ra.touchY(1009);
ra.sendSync();
sleep(8);
ra.touchX(818);
ra.touchY(1006);
ra.sendSync();
sleep(8);
ra.touchX(821);
ra.touchY(1003);
ra.sendSync();
sleep(8);
ra.touchX(824);
ra.touchY(1000);
ra.sendSync();
sleep(8);
ra.touchX(826);
ra.touchY(997);
ra.sendSync();
sleep(8);
ra.touchX(829);
ra.touchY(994);
ra.sendSync();
sleep(9);
ra.touchX(831);
ra.touchY(992);
ra.sendEvent(3, 58, 76);
ra.sendSync();
sleep(8);
ra.touchX(834);
ra.touchY(989);
ra.sendSync();
sleep(8);
ra.touchX(836);
ra.touchY(987);
ra.sendSync();
sleep(8);
ra.touchX(838);
ra.touchY(985);
ra.sendSync();
sleep(8);
ra.touchX(840);
ra.touchY(983);
ra.sendSync();
sleep(8);
ra.touchX(842);
ra.touchY(981);
ra.sendSync();
sleep(8);
ra.touchX(844);
ra.touchY(979);
ra.sendSync();
sleep(8);
ra.touchX(846);
ra.touchY(977);
ra.sendSync();
sleep(8);
ra.touchX(848);
ra.touchY(976);
ra.sendSync();
sleep(8);
ra.touchX(849);
ra.touchY(974);
ra.sendSync();
sleep(8);
ra.touchX(851);
ra.touchY(972);
ra.sendSync();
sleep(8);
ra.touchX(853);
ra.touchY(971);
ra.sendSync();
sleep(8);
ra.touchX(854);
ra.touchY(969);
ra.sendSync();
sleep(8);
ra.touchX(856);
ra.touchY(968);
ra.sendSync();
sleep(8);
ra.touchX(858);
ra.touchY(966);
ra.sendSync();
sleep(8);
ra.touchX(859);
ra.touchY(965);
ra.sendSync();
sleep(8);
ra.touchX(861);
ra.touchY(964);
ra.sendSync();
sleep(8);
ra.touchX(863);
ra.touchY(962);
ra.sendSync();
sleep(8);
ra.touchX(865);
ra.touchY(961);
ra.sendSync();
sleep(8);
ra.touchX(867);
ra.touchY(959);
ra.sendSync();
sleep(8);
ra.touchX(869);
ra.touchY(957);
ra.sendSync();
sleep(8);
ra.touchX(872);
ra.touchY(956);
ra.sendSync();
sleep(8);
ra.touchX(875);
ra.touchY(953);
ra.sendSync();
sleep(8);
ra.touchX(878);
ra.touchY(951);
ra.sendEvent(3, 58, 51);
ra.sendEvent(3, 48, 7);
ra.sendSync();
sleep(8);
ra.touchX(882);
ra.touchY(949);
ra.sendEvent(3, 58, 44);
ra.sendEvent(3, 48, 5);
ra.sendSync();
sleep(8);
ra.touchX(886);
ra.touchY(946);
ra.sendSync();
sleep(8);
ra.touchX(889);
ra.touchY(943);
ra.sendSync();
sleep(30);
ra.sendEvent(3, 57, -1);
ra.sendEvent(1, 330, 0);
ra.sendSync();
sleep(847);
ra.sendEvent(3, 57, 180);
ra.touchX(43);
ra.touchY(440);
ra.exit();

}

}
